package com.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssh.dao.ProductDao;
import com.ssh.entity.Product;
import com.ssh.service.ProductService;

@Service
public class ProductServiceImpl implements ProductService {

	@Autowired
	private ProductDao pd;
	
	@Override
	public List<Product> findProduct() {
		return pd.findProduct();
	}

	@Override
	public Product show(Integer pid) {
		return pd.show(pid);
	}

}
